﻿using Framework.Poco;
using System.Collections.Generic;
using System;
using System.ComponentModel.DataAnnotations;

namespace Framework.Mvc
{
    /// <summary>
    /// 经销商注册的视图模型
    /// </summary>
    public class AgencyBaseViewModel : InstanceViewModel<Agency>
    {
        /// <summary>
        /// 获取或设置系统中可用的经销商分组列表
        /// </summary>
        public IEnumerable<AgencyGroup> AvailableAgencyGroups { get; set; }

        /// <summary>
        /// 获取或设置系统中可用的城区列表
        /// </summary>
        public IEnumerable<District> AvailableDistricts { get; set; }

        /// <summary>
        /// 获取或设置用户选择的经销商分组编号
        /// </summary>
        public Guid AgencyGroupIdentity { get; set; }

        /// <summary>
        /// 获取或设置用户选择的城区的编号
        /// </summary>
        public Guid DistrictIdentity { get; set; }

        /// <summary>
        /// 获取或设置经销商的联系人信息
        /// </summary>
        public Contact Contact { get; set; }
    }
}